package com.kifas.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "tb_buku_voucher")
public class BukuVoucherEntity implements Serializable {

	private static final long serialVersionUID = 921431571453780330L;

	@Id
	@GeneratedValue
	@Column(name = "id_buku_voucher")
	private Long idBukuVoucher;
	
	@ManyToOne
	@JoinColumn(name = "kd_akun", nullable = false)
	private AkunMasterEntity akunMaster;
	
	private BigDecimal debet;
	
	private BigDecimal kredit;
	
        @Temporal(javax.persistence.TemporalType.DATE)
	private Date tanggal;
	
	private String keterangan;
	
	private String posting;
	
	@Column(name = "no_ref")
	private String noRef;
	
	private String deskripsi;
	
	@Column(name= "created_by")
	private String createdBy;
	
	@Column(name= "created_date")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createdDate;
	
	public BukuVoucherEntity() {
	}

	public BukuVoucherEntity(Long idBukuVoucher, AkunMasterEntity akunMaster,
			BigDecimal debet, BigDecimal kredit, Date tanggal,
			String keterangan, String posting, String noRef, String deskripsi, String createdBy, Date createdDate) {
		this.idBukuVoucher = idBukuVoucher;
		this.akunMaster = akunMaster;
		this.debet = debet;
		this.kredit = kredit;
		this.tanggal = tanggal;
		this.keterangan = keterangan;
		this.posting = posting;
		this.noRef = noRef;
		this.deskripsi = deskripsi;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
	}

	public Long getIdBukuVoucher() {
		return idBukuVoucher;
	}

	public void setIdBukuVoucher(Long idBukuVoucher) {
		this.idBukuVoucher = idBukuVoucher;
	}

	public AkunMasterEntity getAkunMaster() {
		return akunMaster;
	}

	public void setAkunMaster(AkunMasterEntity akunMaster) {
		this.akunMaster = akunMaster;
	}

	public BigDecimal getDebet() {
		return debet;
	}

	public void setDebet(BigDecimal debet) {
		this.debet = debet;
	}

	public BigDecimal getKredit() {
		return kredit;
	}

	public void setKredit(BigDecimal kredit) {
		this.kredit = kredit;
	}

	public Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}

	public String getPosting() {
		return posting;
	}

	public void setPosting(String posting) {
		this.posting = posting;
	}

	public String getNoRef() {
		return noRef;
	}

	public void setNoRef(String noRef) {
		this.noRef = noRef;
	}

	public String getDeskripsi() {
		return deskripsi;
	}

	public void setDeskripsi(String deskripsi) {
		this.deskripsi = deskripsi;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getCreatedDate() {
		return createdDate;
	}
	
	
}
